import { createApp } from "vue";
import App from "./App.vue";
import "@/styles/common.less";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import router from "@/router";
import { initTheme } from "./utils/theme.js";
import { Lazyload } from "vant";
const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(pinia);
app.use(router);
app.use(Lazyload, {
  lazyComponent: true,
});
// 初始化主题，防止设置一次后，页面刷新就没有了
initTheme();
app.mount("#app");
